﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace Project01
{
    class Bullets:ObjectGame
    {
        public byte Speed;
        public Bullets(Game game ,string AssetName,int rows,int columns)
            : base(game)
        {
            
            ObjectTexture = game.Content.Load<Texture2D>(AssetName);
            Sprite = new AnimationSprite(ObjectTexture, rows, columns);
        }
        public override void Draw(SpriteBatch SpriteBatch)
        {
            Sprite.Draw(SpriteBatch);
            base.Draw(SpriteBatch);
        }
    }
}
